package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.factory.RemoteSysDeptFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(contextId = "remoteSysDeptService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSysDeptFallbackFactory.class)
public interface RemoteSysDeptService {

    /**
     * 获取部门列表
     */
    @PostMapping("/dept/listgetid")
    public List<?> listgetid(Long deptId, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
